package com.mvc.service;

import com.mvc.entity.Sku;
import com.mvc.entity.Spu;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @ProjectName: dior
 * @Package: com.mvc.service
 * @ClassName: ProductService
 * @Description: TODO
 * @Author: Bang
 * @Date: 2021/12/1 17:01
 * @Version: 1.0
 **/
public interface ProductService {
    List<Spu> query(Map<String,Object> pars);

    int count(Map<String,Object> pars);

    Integer updateStatus(Integer id, Integer status);

    Integer update(Spu spu);

    Integer updateSku(Sku sku);

    Integer delSpu(Integer id);

    Integer delSku(Integer id);

    Integer add(Spu spu);

    List<Spu> all(Map<String,Object> pars);
}
